package com.six.apidemic.fragment.company;

import android.view.View;
import android.widget.ImageView;

import com.six.apidemic.R;
import com.six.apidemic.bean.LoginCallbackBean;
import com.six.apidemic.fragment.BaseFragment;
import com.six.apidemic.util.BitmapUtil;
import com.six.apidemic.util.SpUtils;

/**
 * 企业首页
 */
public class CompanyFragment extends BaseFragment {

   ImageView ivModule;

   @Override
   protected void initView(View view) {
      ivModule = view.findViewById(R.id.ivModule);
      LoginCallbackBean.ResultBean.UserBean bean = (LoginCallbackBean.ResultBean.UserBean)
              SpUtils.getBean(getActivity(),"module_user_bean");
      if (bean != null) {
         ivModule.setImageBitmap(BitmapUtil.getStrZxingBitmap(getActivity(),bean.getId() + ","+  bean.getName(),R.drawable.logo,R.color.black));
      }
   }

   @Override
   protected int findLayoutId() {
      return R.layout.fragment_company;
   }
}
